|
|
|
|
|
|
|
This class takes advantage of a new ability of Visual Basic 6 to use user-defined types as parameters and return values of class methods and properties. If you are using Visual Basic 5, you will not be able to return the CLSID value as shown here. Your easiest solution in this case is probably to have the class set the form label values directly. |
|
|
|
|
|
|
|
|
When you run the program, the form shown in Figure P26-1 is displayed. |
|
|
|
|
|
|
|
|
Clearly, something is wrong. Your job: Fix the program so that it displays the CLSID for the object. |
|
|
|
|
|
|
|
|
Figure P26-1:
The GUIDPuzzle program results |
|
|
|
|
|